/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const router = {
  path: '/store',
  component: Layout,
  name: 'store',
  meta: {
    title: '仓库',
    icon: 'orders'
  },
  children: [
    {
      path: 'receiveList',
      component: () => import('@/views/store/receive/receiveList'),
      name: 'receiveList',
      meta: {
        title: '到货'
      }
    },
    {
      path: 'receiveDetail/:id',
      hidden: true,
      component: () => import('@/views/store/receive/receiveDetail'),
      name: 'receiveDetail',
      meta: {
        activeMenu: '/store/receiveList',
        title: '到货详情'
      }
    },
    {
      path: 'qualityList',
      component: () => import('@/views/store/quality/qualityList'),
      name: 'qualityList',
      meta: {
        title: '质检'
      }
    },
    {
      path: 'qualityDetail/:id',
      hidden: true,
      component: () => import('@/views/store/quality/qualityDetail'),
      name: 'qualityDetail',
      meta: {
        activeMenu: '/store/qualityList',
        title: '质检详情'
      }
    },
    {
      path: 'deliverList',
      component: () => import('@/views/store/deliver/deliverList'),
      name: 'deliverList',
      meta: {
        title: '发货'
      }
    },
    {
      path: 'deliverDetail/:id',
      hidden: true,
      component: () => import('@/views/store/deliver/deliverDetail'),
      name: 'deliverDetail',
      meta: {
        activeMenu: '/store/deliverList',
        title: '发货详情'
      }
    }
  ]
}
export default router
